﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RegisterProfile.aspx.cs"
    MasterPageFile="~/Site.master" Inherits="SignUpProfile" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <script language="javascript" type="text/javascript">
	$(function() {$( "#datepicker" ).datepicker({changeMonth: true,changeYear: true});});
	$(function() {$( "#tabs" ).tabs();});
	
    </script>

    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">Register profile</a></li>
            <li><a href="#tabs-2">Basic info</a></li>
            <li><a href="#tabs-3">Religious info</a></li>
            <li><a href="#tabs-4">Career info</a></li>
            <li><a href="#tabs-5">Physical info</a></li>
            <li><a href="#tabs-6">Family background</a></li>
            <li><a href="#tabs-7">Profile photo</a></li>
        </ul>
        <!-- Sign up -->
        <div id="tabs-1">
            <table>
                <tr>
                    <td>
                        <strong>First name :</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtFirstName" runat="server" MaxLength="100" CssClass="right" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Last name :</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtLastName" runat="server" MaxLength="100" CssClass="right" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Email :</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" MaxLength="100" runat="server" CssClass="right" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Confirm email :</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtConfirmEmail" MaxLength="100" runat="server" CssClass="right" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Password :</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" TextMode="Password" MaxLength="100" runat="server"
                            CssClass="right" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Confirm password :</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtConfirmPassword" TextMode="Password" MaxLength="100" runat="server"
                            CssClass="right" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="lblStatus" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="Sign up" OnClick="btnSave_Click" />
                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                    </td>
                </tr>
            </table>
        </div>
        <!-- Basic Profile info  -->
        <div id="tabs-2">
            <table>
                <tr>
                    <td>
                        <strong>Profile created by : </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlProfile" runat="server">
                            <asp:ListItem>Self</asp:ListItem>
                            <asp:ListItem>Parent/Guardian</asp:ListItem>
                            <asp:ListItem>Sibling</asp:ListItem>
                            <asp:ListItem>Friend</asp:ListItem>
                            <asp:ListItem>Other</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Gender : </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblGender" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Male" Value="0" Selected="True" />
                            <asp:ListItem Text="Female" Value="1" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Date of birth : </strong>
                    </td>
                    <td>
                        <input type="text" id="datepicker">
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Maritial status : </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblMaritialStatus" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Never Married" Value="1" Selected="True" />
                            <asp:ListItem Text="Divorced" Value="2" />
                            <asp:ListItem Text="Widowed" Value="3" />
                            <asp:ListItem Text="Seperated" Value="4" />
                            <asp:ListItem Text="Annulled" Value="5" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Have children : </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblHaveChilden" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="No" Value="1" Selected="True" />
                            <asp:ListItem Text="Yes.Living together" Value="2" />
                            <asp:ListItem Text="Yes.Not living together" Value="3" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Mother tongue : </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMotherTongue" runat="server" DataTextField="language" DataValueField="languageId" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Partner preference :</strong>
                    </td>
                    <td>
                        <asp:TextBox TextMode="MultiLine" ID="txtPartnerPreference" runat="server" MaxLength="100" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>About me : </strong>
                    </td>
                    <td>
                        <asp:TextBox TextMode="MultiLine" ID="txtAboutMe" runat="server" MaxLength="100" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnSaveBasicInfo" runat="server" Text="Save" OnClick="btnSaveBasicInfo_Click" />
                        <asp:Button ID="btnEditBasicInfo" runat="server" Text="Edit" OnClick="btnEditBasicInfo_Click" />
                        <asp:Button ID="btnCancelBasicInfo" runat="server" Text="Cancel" OnClick="btnCancelBasicInfo_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <!-- Religious info  -->
        <div id="tabs-3">
            <table>
                <tr>
                    <td>
                        <strong>Religion :</strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlReligion" DataTextField="Religion" DataValueField="ReligionId"
                            runat="server" OnSelectedIndexChanged="ddlReligionChanged" AutoPostBack="True" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Caste : </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCast" DataTextField="CastName" DataValueField="CastId" runat="server"
                            AutoPostBack="True" OnSelectedIndexChanged="ddlCastChanged" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Sub caste : </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSubcast" DataTextField="SubCastName" DataValueField="SubCastId"
                            runat="server" AutoPostBack="True" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Gana : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtGana" runat="server" MaxLength="100" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Gothra : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtGotra" runat="server" MaxLength="100" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Nakshtra : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNakshtra" runat="server" MaxLength="100" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Birthtime : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtBirthTime" runat="server" MaxLength="100" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Mangalik : </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblMangalik" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Yes" Value="1" Selected="True" />
                            <asp:ListItem Text="No" Value="2" />
                            <asp:ListItem Text="Don't know" Value="3" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Sunsign : </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSunSign" runat="server">
                            <asp:ListItem Text="Aries" Value="1" />
                            <asp:ListItem Text="Leo" Value="2" />
                            <asp:ListItem Text="Sagittarius" Value="3" />
                            <asp:ListItem Text="Taurus" Value="4" />
                            <asp:ListItem Text="Virgo" Value="5" />
                            <asp:ListItem Text="Capricorn" Value="6" />
                            <asp:ListItem Text="Gemini" Value="7" />
                            <asp:ListItem Text="Libra" Value="8" />
                            <asp:ListItem Text="Aquarius" Value="9" />
                            <asp:ListItem Text="Cancer" Value="10" />
                            <asp:ListItem Text="Scorpio" Value="11" />
                            <asp:ListItem Text="Pisces" Value="12" />
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnReligiousInfoSave" runat="server" Text="Save" OnClick="btnReligiousInfoSave_Click" />
                        <asp:Button ID="btnReligiousInfoEdit" runat="server" Text="Edit" OnClick="btnReligiousInfoEdit_Click" />
                        <asp:Button ID="btnReligiousInfoCancel" runat="server" Text="Cancel" OnClick="btnReligiousInfoCancel_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <!-- Education and Career info  -->
        <div id="tabs-4">
            <table>
                <tr>
                    <td>
                        <strong>Education </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlEducation" DataTextField="Education" DataValueField="EducationId"
                            runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Occupation </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlOccupation" DataTextField="Occupation" DataValueField="OccupationId"
                            runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>AnnualIncome </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtAnnualIncome" runat="server" /><strong> Lakhs</strong>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>ResidentialStatus </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlResidentialType" runat="server">
                            <asp:ListItem Text="BusinessVisa" Value="1" />
                            <asp:ListItem Text="Cityzenship" Value="2" />
                            <asp:ListItem Text="StudentVisa" Value="3" />
                            <asp:ListItem Text="TouristVisa" Value="4" />
                            <asp:ListItem Text="WorkPermit" Value="5" />
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnEducationSave" runat="server" Text="Save" OnClick="btnEducationSave_Click" />
                        <asp:Button ID="btnEducationEdit" runat="server" Text="Edit" OnClick="btnEducationEdit_Click" />
                        <asp:Button ID="btnEducationCancel" runat="server" Text="Cancel" OnClick="btnEducationCancel_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <!-- Physical info  -->
        <div id="tabs-5">
            <table>
                <tr>
                    <td>
                        <strong>Height : </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlHeight" runat="server" DataValueField="height" DataTextField="height" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Weight : </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlWeight" runat="server" DataValueField="weight" DataTextField="weight" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Bloodgroup : </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblBloodGroup" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Dont know" Value="0" Selected="True" />
                            <asp:ListItem Text="A+" Value="1" />
                            <asp:ListItem Text="A-" Value="2" />
                            <asp:ListItem Text="B+" Value="3" />
                            <asp:ListItem Text="B-" Value="4" />
                            <asp:ListItem Text="O+" Value="5" />
                            <asp:ListItem Text="O-" Value="6" />
                            <asp:ListItem Text="AB+" Value="7" />
                            <asp:ListItem Text="AB-" Value="8" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Bodytype : </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblBodyType" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Slim" Value="1" Selected="True" />
                            <asp:ListItem Text="Average" Value="2" />
                            <asp:ListItem Text="Athelitic" Value="3" />
                            <asp:ListItem Text="Heavy" Value="4" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Complexion </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblComplexion" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Very fair" Value="1" Selected="True" />
                            <asp:ListItem Text="Fair" Value="2" />
                            <asp:ListItem Text="Wheatish" Value="3" />
                            <asp:ListItem Text="Wheatish medium" Value="4" />
                            <asp:ListItem Text="Wheatish brown" Value="5" />
                            <asp:ListItem Text="Dark" Value="6" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>DietType </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblDietType" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Veg" Value="1" Selected="True" />
                            <asp:ListItem Text="Non-Veg" Value="2" />
                            <asp:ListItem Text="Eggetarian" Value="3" />
                            <asp:ListItem Text="Occasioanlly-Non-Veg" Value="4" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="chkPhysicallyChallenged" runat="server" Text="Is physically challenged?"
                            TextAlign="Right" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsSmoke" runat="server" Text="Is smoke?" TextAlign="Right" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsDrink" runat="server" Text="Alcoholic drinks?" TextAlign="Right" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsSpects" runat="server" Text="Is using spectacles?" TextAlign="Right" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnPhysicalInfoSave" runat="server" Text="Save" OnClick="btnPhysicalInfoSave_Click" />
                        <asp:Button ID="btnPhysicalInfoEdit" runat="server" Text="Edit" OnClick="btnPhysicalInfoEdit_Click" />
                        <asp:Button ID="btnPhysicalInfoCancel" runat="server" Text="Cancel" OnClick="btnPhysicalInfoCancel_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <!-- Family background  -->
        <div id="tabs-6">
            <table>
                <tr>
                    <td>
                        <strong>Father Name : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtFatherName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Father occupation : </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlFatherOccupatioin" DataTextField="Occupation" DataValueField="OccupationId"
                            runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Mother Name : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtMotherName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Mother occupation : </strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMotherOccupation" DataTextField="Occupation" DataValueField="OccupationId"
                            runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Number of brothers : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNumberofBrothers" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Number of brothers married : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtMarriedBros" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Number of sisters : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNumberOfSisters" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Number of sisters married : </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtMarriedSisters" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsJointFamily" runat="server" Text="Is joined family ?" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Family values : </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblFamilyValues" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Traditional" Value="1" Selected="True" />
                            <asp:ListItem Text="Moderate" Value="2" />
                            <asp:ListItem Text="Liberal" Value="3" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Known relatives if any : </strong>
                    </td>
                    <td>
                        <asp:TextBox TextMode="MultiLine" ID="txtKnownRelatives" runat="server" MaxLength="2000" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>About my family : </strong>
                    </td>
                    <td>
                        <asp:TextBox TextMode="MultiLine" ID="txtAboutMyfamily" runat="server" MaxLength="4000" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnFamilyBGSave" runat="server" Text="Save" OnClick="btnFamilyBGSave_Click" />
                        <asp:Button ID="btnFamilyBGEdit" runat="server" Text="Edit" OnClick="btnFamilyBGEdit_Click" />
                        <asp:Button ID="btnFamilyBGCancel" runat="server" Text="Cancel" OnClick="btnFamilyBGCancel_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tabs-7">
            <table>
                <tr>
                    <td>
                        <strong>Upload photo : </strong>
                    </td>
                    <td>
                        <asp:FileUpload ID="uploadImage" runat="server"/>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnUpload" Text="Upload" runat="server" 
                            onclick="btnUpload_Click" />
                        <asp:Button ID="btnCancelUpload" Text="Cancel" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
